package org.acompanhamento;

import jmine.tec.datadigester.web.pages.importacao.Importacao;
import jmine.tec.rtm.impl.web.pages.ConsultaExceptionRecord;
import jmine.tec.rtm.impl.web.pages.diagnosticador.ConsultaDiagnosticador;
import jmine.tec.web.wicket.component.menu.cfg.AbstractMenuConfigFactoryBean;
import jmine.tec.web.wicket.component.menu.cfg.MenuConfig;

import org.acompanhamento.pages.sprint.ListSprintPage;
import org.acompanhamento.pages.task.ListTask;
import org.acompanhamento.pages.taskboard.TaskBoard;
import org.acompanhamento.pages.team.ListTeamPage;
import org.acompanhamento.pages.workflow.ListWorkflowPage;

/**
 * Starting point menu creator
 * 
 * @author takeshi
 */
public class WebApplicationMenuCreator extends AbstractMenuConfigFactoryBean {

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected MenuConfig createMenuConfig() {
		MenuConfig config = new MenuConfig();

		config.addPage(ListTeamPage.class, "Times", "Times");
		config.addPage(ListTask.class, "Times", "Tarefas");
		config.addPage(ListWorkflowPage.class, "Times", "Fluxo das Tarefas");
		config.addPage(ListSprintPage.class, "Times", "Sprint");
		config.addPage(TaskBoard.class, "Times", "Quadro");

		config.addPage(ConsultaDiagnosticador.class, "Infra", "Diagnosticador");
		config.addPage(ConsultaExceptionRecord.class, "Infra", "Exceptions");
		config.addPage(Importacao.class, "Infra", "Importacao");

		return config;
	}

}
